<html>
<head>
    <title>Welcome!</title>
    <script src="/js/jquery-3.1.1.js"></script>
</head>
<body>
<h1>
    Welcome ${u.getName()}
</h1>
<form action="/upload" method="post" enctype="multipart/form-data">
    选择文件:<input type="file" name="file">
    <input type="submit" value="提交">
</form>

<script type="text/javascript">
    $.ajax({
        type: "GET",
        url: "https://www.baidu.com/",
        dataType: "json",
        success: function (result, status) {
            alert(result);
        }
    });
</script>

</body>
</html>